//package com.amumu.drama.portal.controller;
//
//import com.amumu.drama.common.api.CommonResult;
//import com.amumu.drama.common.modules.invitation.service.InvitationService;
//import com.amumu.drama.common.modules.order.service.BonusPointService;
//import com.amumu.drama.model.UmsIntegrationChangeHistory;
//import com.amumu.drama.model.UmsMember;
//import com.amumu.drama.portal.service.AuthService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.math.BigDecimal;
//import java.util.List;
//
//@RestController
//@RequestMapping("/api/v1/invitation")
//public class InvitationController {
//
//    @Autowired
//    private InvitationService invitationService;
//    @Autowired
//    private BonusPointService bonusPointService;
//    @Autowired
//    private AuthService authService;
//
//    @GetMapping("/createCode")
//    public CommonResult<String> createInvitationQrCode() {
//        return invitationService.generateInvitationCode(new BigDecimal("0.85"), authService.getCurrentMember());
//    }
//
//    @GetMapping("/bonus/point/list")
//    public CommonResult<List<UmsIntegrationChangeHistory>> createBonusPoint(UmsMember member, Integer changeType) {
//        return bonusPointService.memberBonusPointList(member, changeType);
//    }
//
//    @GetMapping("/validateCode")
//    public CommonResult<String> validateCode(@RequestParam String invitationCode) {
//        return invitationService.validateCode(invitationCode);
//    }
//}
